<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/pages/common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>报表接入系统</title>
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/scripts/jquery-easyUI/1.5.2/themes/metro/easyui.css" />
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/scripts/jquery-easyUI/1.5.2/themes/icon.css" />
    <script type="text/javascript" src="<%=request.getContextPath()%>/scripts/jquery-easyUI/1.5.2/jquery.min.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/scripts/jquery-easyUI/1.5.2/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/scripts/jquery-easyUI/1.5.2/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/scripts/jquery-easyUI/1.5.2/datagrid-cellediting.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/scripts/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/scripts/page/accessIn.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/scripts/fSelect.js"></script>
    <style type="text/css">
        .mask {
            position: absolute; top: 0px; filter: alpha(opacity=60); background-color: #777;
            z-index: 1002; left: 0px;
            opacity:0.5; -moz-opacity:0.5;
        }
    </style>
    <script type="application/javascript">
        var basePath = "${pageContext.request.contextPath}";
    </script>
</head>

<body style="height: 100%;">
    <div id="mask" class="mask"></div>

    <table id="dg" class="easyui-datagrid" title="报表接入系统管理" data-options="singleSelect:true,toolbar:'#tb',collapsible:true,method:'POST',
                                rownumbers: false" style="width:100%;height:100%;">
    </table>

    <div id="tb" style="height:auto">
        <div style="padding:2px 5px;margin: 5px;">
            <label>接入系统: </label>
            <input class="easyui-textbox" name="sysName" id="sysName" style="width:180px;height:25px">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="accessIn.query()">查询</a>
            <a href="#" class="easyui-linkbutton" iconCls="icon-add" onclick="accessIn.addAccessInSys();">新增接入系统</a>
        </div>
    </div>

    <div id="addAccessInWin" class="easyui-window" title="新增接入系统" data-options="modal:true,closed:true,collapsible:false,minimizable:false,maximizable:false" style="display:none;width:620px;height:200px;padding-top:30px;padding-left:30px;">
        <div>
            <div style="display:inline">
                <label>系统名称:</label>
                <input class="easyui-textbox" type="text" id="instSysName" name="instSysName" data-options="required:true">
            </div>
            <div style="display:inline;margin-left:50px;">
                <label>系统代码:</label>
                <input class="easyui-textbox" type="text" id="instSysCode" name="instSysCode" data-options="required:true">
            </div>
        </div>
        <div style="margin-top:20px;text-align: center;">
            <a href="#" id="saveBtn" class="easyui-linkbutton" iconCls="icon-ok" onclick="accessIn.saveAccessInSys()">保存</a>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="accessIn.closeWin('addAccessInWin')">取消</a>
        </div>
    </div>

    <div id="editAccessInWin" class="easyui-window" title="修改接入系统" data-options="modal:true,closed:true,collapsible:false,minimizable:false,maximizable:false" style="display:none;width:620px;height:200px;padding-top:30px;padding-left:30px;">
        <input type="hidden" id="sid" name="sid">
        <div>
            <div style="display:inline">
                <label>系统名称:</label>
                <input class="easyui-textbox" type="text" id="editSysName" name="editSysName" data-options="required:true">
            </div>
            <div style="display:inline;margin-left:50px;">
                <label>系统代码:</label>
                <input class="easyui-textbox" type="text" id="editSysCode" name="editSysCode" data-options="required:true">
            </div>
        </div>
        <div style="margin-top:20px;text-align: center;">
            <a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="accessIn.updateAccessSysIn()">修改</a>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="accessIn.closeWin('editAccessInWin')">取消</a>
        </div>
    </div>
</body>
</html>